package com.inspur.ourhis_afterend.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("DOCTORS")
public class Doctors {

    @TableId(value = "docid", type = IdType.AUTO)
    private String docId;

    private String name;
    private String password;
    private String role;

    @ApiModelProperty("真实姓名")
    @TableField("realname")
    private String realName;

    @ApiModelProperty("电话")
    private String tel;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("职称")
    private String positional;

    @TableField("createdate")
    private Date createDate;

    @TableField("departid")
    private String departId;
}
